/**
* @file queue_processor_mdc.h
*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef QUEUE_PROCESS_CCPU_H
#define QUEUE_PROCESS_CCPU_H

#include <map>
#include <string>
#include "queue_process.h"

namespace acl {
class QueueProcessorCcpu : public QueueProcessor
{
public:
    virtual aclError acltdtCreateQueue(const acltdtQueueAttr *const attr, uint32_t *const qid) override;

    virtual aclError acltdtDestroyQueue(const uint32_t qid) override;

    virtual aclError acltdtBindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;

    virtual aclError acltdtUnbindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;

    virtual aclError acltdtQueryQueueRoutes(const acltdtQueueRouteQueryInfo *const queryInfo,
                                    acltdtQueueRouteList *const qRouteList) override;

    aclError QueryGroup(const int32_t pid, size_t &grpNum, std::string &grpName) const;

    aclError MbufInit() const;

    QueueProcessorCcpu() = default;
    virtual ~QueueProcessorCcpu() = default;

    // not allow copy constructor and assignment operators
    QueueProcessorCcpu(const QueueProcessorCcpu &) = delete;

    QueueProcessorCcpu &operator=(const QueueProcessorCcpu &) = delete;

    QueueProcessorCcpu(QueueProcessorCcpu &&) = delete;

    QueueProcessorCcpu &&operator=(QueueProcessorCcpu &&) = delete;

};
}



#endif // QUEUE_PROCESS_CCPU_H